package com.itheima.demo9_多态的应用场景.变量多态;

public class Test {
    public static void main(String[] args) {
        Animal anl1 = new Dog();
        Animal anl2 = new Cat();
        anl1.eat();//狗吃骨头
        anl2.eat();//猫吃鱼
    }
}
